try:
    print("有可能出现异常的代码：")
    print(1+'1')
except:
    print("如果出现了异常则会进入该代码块")
finally:
    print("必须执行的代码块")


try:
    print(1 + '1')
except ZeroDivisionError as e:  # 接收指定异常，并赋值给e，可打印
    print(e)
except Exception as e:
    print(e)